﻿@model MvcOrganizer.Models.Book

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <div class="form_settings">
        <p>
            @Html.LabelFor(model => model.Title)
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </p>
        <p>
            @Html.LabelFor(model => model.ReleaseDate)
            @Html.EditorFor(model => model.ReleaseDate)
            @Html.ValidationMessageFor(model => model.ReleaseDate)
        </p>
        <p>
            @Html.LabelFor(model => model.Genre)
            @Html.EditorFor(model => model.Genre)
            @Html.ValidationMessageFor(model => model.Genre)
        </p>
        <p>
            @Html.LabelFor(model => model.Rating)
            @Html.EditorFor(model => model.Rating)
            @Html.ValidationMessageFor(model => model.Rating)
        </p>
        <p>
            @Html.LabelFor(model => model.Completed)
            @Html.CheckBoxFor(model => model.Completed)
            @Html.ValidationMessageFor(model => model.Completed)
        </p>
        <p style="padding-top: 15px">
            <span>&nbsp;</span>
            <input type="submit" class="submit" value="Create" />
        </p>
    </div>    
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
